package com.zhanghe.study.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
// 测试自动构建
@SpringBootApplication //标注主程序类
//@EnableGlobalMethodSecurity(// Spring Security 开启注解
//		securedEnabled=true, // 开启@Secured注解
//		prePostEnabled = true // 开启@PreAuthorize和@PostAuthorize注解
//)
@EnableAsync
public class DemoApplication {
	/**
	 * 如果需要部署到外部的tomcat容器上
	 * 修改启动类，继承 SpringBootServletInitializer 并重写 configure 方法
	 */
//	@Override
//	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
//		return builder.sources(DemoApplication.class);
//	}


	public static void main(String[] args) {
		 SpringApplication.run(DemoApplication.class, args);
	}
}
